<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>退款详情</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link href="/lobsteruiframe/layuiadmin/layui/css/layui.css" rel="stylesheet" />
    <link href="/lobsteruiframe/layuiadmin/style/admin.css" rel="stylesheet" />
    <script src="/lobsteruiframe/layuiadmin/layui/layui.js"></script>

    <script src="/jslib/jquery-3.4.1.min.js"></script>
    <script src="/jslib/lobster.js"></script>
</head>


<body>
    <div class="layui-fluid">
        <div class="layui-card"> 
            <div class="layui-card-body">
                <table id="datatable" lay-filter="datatable"></table>
            </div>
        </div>
    </div>
</body>
 
</html>

<script>
lobsterlayui.main(['index', 'layer', 'form', 'element','table'], {
    data: {
        table: null,
        tableoptions: {},
        layerindex: 0,
        selectdata: {},
        selectinfo:{},
    },
    pageload: function (right) {
        var self=this;
        self.data.selectdata=parent.selectdata;
        // self.initevent();
        self.loaddata();
    },
    //加载订单列表
    loaddata: function () {
        var self = this; 
        self.data.table = layui.table.render({
            elem: '#datatable',
            where: {
                orderNo: self.data.selectdata.OrderNo
            },
            headers:lobsterlayui.GetHeaderData(),
            url: lobsterlayui.GetLowCodeUrl("tspay.getrefundlistdetail"),
            height: 'full-50',
            cellMinWidth: 80,
            size: 'sm', 
            cols: [[
                { width: "200", field: 'OrderNo', title: '订单号', fixed: 'left' }, 
                { width: "200", field: 'BusinessOrderNo', title: '业务订单号', fixed: 'left' },
                { width: "200", field: 'RefundNo', title: '退款单号', fixed: 'left' }, 
                { width: "200", field: 'BusinessRefundNo', title: '业务退款单号', fixed: 'left' },
                { width: "100", field: 'RefundFee', title: '退款金额'},
                { width: "200", field: 'RefundDate', title: '退款时间',templet:function(d){
                    return (d.RefundDate || "").substring(0, 19);
                }},
                { width: "200", field: 'SuccessTime', title: '退款成功时间'},
                { width: "200", field: 'RefundDesc', title: '退款说明'},
                { width: "200", field: 'TransactionId', title: '退款第三方流水号'},
            ]],
            parseData: function (res) {
                return {
                    code: res.code,
                    msg: res.msg,
                    count: 0,
                    data: res.data.data
                }
            },
        })
    }, 
})
</script>